from random import randint

def enjoy_play(ways, times=10):
    for i in range(0,10):
        print(f"{ways}")

class Die():
    def __init__(self, sides=6):
        self.sides = sides

    def roll_die(self, times=10):
        dies = []
        for i in range(0, times):
            # 返回一个1 到 sides内的整数，包含1 和 sides
            num = randint(1, self.sides)
            dies.append(num)
        return dies


lucky_6 = Die(6)
print("\n roll 6 sides:")
print(lucky_6.roll_die())

print("\n roll 10 sides:")
lucky_10 = Die(10)
print(lucky_10.roll_die())


print("\n roll 20 sides:")
lucky_20 = Die(20)
print(lucky_20.roll_die())

